import { post, put, get } from '@/utils/hettpUtils/httpRequest'

export const loginLogColumns = [
    {
        title: "登录人",
        dataIndex: "createUser",
    },
    {
        title: "操作IP",
        dataIndex: "remoteIp",
    },
    {
        align: 'center',
        title: "登录时间",
        dataIndex: "requestTime",
        sorter: true,
    },
    {
        title: "携带参数",
        dataIndex: "requestParams",
    },
    {
        align: 'center',
        width:'120px',
        title: "操作",
        dataIndex: "action",
        scopedSlots: { customRender: "action" },
    },
];

export const addLoginLog = (parameter) => post('api/sysLoginLog/addLoginLog', parameter)
export const deleteLoginLog = (parameter) => post('api/sysLoginLog/deleteLoginLog', parameter)
export const updateLoginLog = (parameter) => put('api/sysLoginLog/updateLoginLog', parameter)
export const queryLoginLog = (parameter) => get('api/sysLoginLog/queryLoginLog', parameter)
export const getLoginLog = (parameter) => get('api/sysLoginLog/getLoginLog', parameter)
export const queryLoginLogTreeSelect = (parameter) => get('api/sysLoginLog/queryLoginLogTreeSelect', parameter)

